package com.runvp.rest.app;

import com.runvp.common.core.controller.BaseController;
import com.runvp.common.core.domain.AjaxResult;
import com.runvp.service.biz.domain.BizAppVersion;
import com.runvp.service.biz.service.IBizAppVersionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * APP版本Controller
 * 
 * @author runvp
 * @date 2023-03-20
 */
@Controller
@ResponseBody
@RequestMapping("/app/client/device/version")
public class AppVersionController extends BaseController {

    @Autowired
    private IBizAppVersionService bizAppVersionService;

    /**
     * APP版本检查
     */
    @GetMapping("/check")
    public AjaxResult check(String v) {
        return AjaxResult.success(bizAppVersionService.check(v));
    }
}
